﻿<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ include file="/common/_taglibs.jsp"%>
<%@ include file="/common/_meta.jsp"%>
<title>用户权限列表</title>
<meta name="keywords" content="cms-simple CMS后台管理系统">
<meta name="description" content="cms-simple CMS后台管理系统">
</head>
<body>
<div class="page-container">
	<div class="mt-20">
		<table class="table table-border table-bordered table-hover table-bg table-sort">
			<thead>
				<tr>
					<th scope="col" colspan="5">权限列表</th>
				</tr>
				<tr class="text-c">
					<th width="100">权限名称</th>
					<th width="90">描述</th>
					<th width="50">资源类型</th>
					<th width="90">资源地址</th>
					<th width="50">是否已启用</th>
				</tr>
			</thead>
			<tbody>
				<c:if test="${resourceList != null }">
					<c:forEach items="${resourceList }" var="resource">
					    <tr class="text-c">
						<td>${resource.name }</td>
						<td>${resource.description }</td>
						<td>
							<c:if test="${resource.type == 1}">
								<span style="color:red;">菜单</span>
							</c:if>
							<c:if test="${resource.type == 2}">
								方法
							</c:if>
						</td>
						<td>${resource.url }</td>
						<td class="td-status">
							<c:choose>
								<c:when test="${resource.status == 1}">
									<span class="label label-success radius">已启用</span>
								</c:when>
								<c:when test="${resource.status == 2}">
									<span class="label label-default radius">已禁用</span>
								</c:when>
							</c:choose>
						</td>
						</tr>
					</c:forEach>
				</c:if>
			</tbody>
		</table>
	</div>
</div>
<script type="text/javascript" src="${ctx}/lib/jquery/1.9.1/jquery.min.js"></script>  
<script type="text/javascript" src="${ctx}/lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="${ctx}/lib/laypage/1.2/laypage.js"></script> 
<script type="text/javascript" src="${ctx}/lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="${ctx}/static/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="${ctx}/static/h-ui.admin/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="${ctx}/static/h-ui.admin/js/common.js"></script> 
</body>
</html>
